<%@ include file="/common/taglibs.jsp"%>
<link rel="stylesheet" type="text/css" media="all" href="<c:url value='/styles/cip/common/cip-main.css'/>" />
 <script>
	$(function() {
        $("#saveOrUpdateAcademic_academic_fromDate").datepicker({
  	    	changeMonth: true,
            changeYear: true,
		});
        
        $("#saveOrUpdateAcademic_academic_toDate").datepicker({
  	    	changeMonth: true,
            changeYear: true,
		});
    });
	
	jQuery(document).ready(function(){
		jQuery("#academic").validate();
	});
</script>
<style>
	#ui-datepicker-div {
	    font-family: "Trebuchet MS","Helvetica","Arial","Verdana","sans-serif";
	    font-size: 62.5%;
	}
</style>
	
<div style="padding:5px;" align="center">
	<!-- <span class="head-dec">Academic Master Details</span> --><br/><br/>
	<s:form id="academic" name="academic" action="saveOrUpdateAcademic" method="post" validate="true">
	 <table border="0">
     	<tr>
     		<td class="inputField" nowrap="nowrap">
     			From <label style="color:red;">*</label>
     		</td>
			<td class="inputTextBox">
				 <s:textfield type="date" cssClass="required" size="10" name="academic.fromDate" id="saveOrUpdateAcademic_academic_fromDate" style="top:180px;width:250px;"/>
			</td>
		</tr>
		<tr><td>&nbsp;</td></tr>
		<tr>
			<td class="inputField" nowrap="nowrap">
				To <label style="color:red;">*</label>
			</td>
			<td class="inputTextBox">				
				<s:textfield type="date" size="10" cssClass="required" name="academic.toDate" id="saveOrUpdateAcademic_academic_toDate" style="top:180px;width:250px;" />
			</td>
		</tr>
		<tr><td>&nbsp;</td></tr>
		<tr>
			<td class="inputField" nowrap="nowrap">
     			Status
     		</td>
			<td class="inputTextBox">
				<s:radio  name="academic.status" id="saveOrUpdateAcademic_academic_status" list="#{'Active':'Active','InActive':'InActive'}" value="%{academic.getStatus()}"  theme="simple"/>
			</td>
		</tr>
		<tr><td>&nbsp;</td></tr>
		<tr>
			<td colspan="2">
				<s:reset value="Clear" id="saveOrUpdateAcademic_0" cssClass="button-gray" theme="simple"/>
				<s:if test="academic.id == ''">
					<s:submit value="Create" id="saveOrUpdateAcademic_0" cssClass="button-green" theme="simple" />
				</s:if>
				<s:else>
					<s:submit value="Update" id="saveOrUpdateAcademic_0" cssClass="button-green" theme="simple" />
				</s:else>
				<input type="button" value="List" id="saveOrUpdateAcademic_0" class="button-gray" onclick="javascript:showLists('/showAcademicList');" />
			</td>
		</tr>				
	</table>
	<s:hidden id="id" name="academic.id"></s:hidden>	
	</s:form>
</div> 
